<?php
 $active=request()->controller().'/'.request()->action();

?>
<aside class="lt_aside_nav content mCustomScrollbar">
	<h2><a href="{:url('Index/index')}">起始页</a></h2>
	<ul>
		<if condition="$group_power eq 'all' || in_array('client',$group_power)">
		<li>
			<dl>
				<dt>客户列表</dt>
				<if condition="$role_right eq 'all' || in_array('Center@member',$role_right)">
				<dd>
					<a href="{:url('Center/member')}"  <eq name="active" value="Center/member">class="active"</eq>>会员列表</a>
				</dd>
				</if>
				<if condition="$role_right eq 'all' || in_array('Merchant@index',$role_right)">
					<dd>
						<a href="{:url('Merchant/index')}"  <eq name="active" value="Merchant/index">class="active"</eq>>商户列表</a>
					</dd>
				</if>
				<if condition="$role_right eq 'all' || in_array('Driver@index',$role_right)">
					<dd>
						<a href="{:url('Driver/index')}"  <eq name="active" value="Driver/index">class="active"</eq>>司机列表</a>
					</dd>
				</if>
				<if condition="$role_right eq 'all' || in_array('Merchant@variety',$role_right)">
					<dd>
						<a href="{:url('Merchant/variety')}"  <eq name="active" value="Merchant/variety">class="active"</eq>>菜品统计</a>
					</dd>
				</if>
			</dl>
		</li>
			</if>
		<if condition="$group_power eq 'all' || in_array('data',$group_power)">
			<li>
				<dl>
					<dt>数据</dt>
					<if condition="$role_right eq 'all' || in_array('Order@order_list',$role_right)">
						<dd>
							<a href="{:url('Order/order_list')}"  <eq name="active" value="Order/order_list">class="active"</eq>>订单列表</a>
						</dd>
					</if>
					<if condition="$role_right eq 'all' || in_array('Withdrawals@index',$role_right)">
						<dd>
							<a href="{:url('Withdrawals/index')}"  <eq name="active" value="Withdrawals/index">class="active"</eq>>提现列表</a>
						</dd>
					</if>
					<dd>
						<a href="{:url('Membership/list_driver_withdrawals')}">司机提现列表</a>
					</dd>
					<dd>
						<a href="{:url('Membership/list_driver_balance')}">司机收入列表</a>
					</dd>
				</dl>
			</li>
		</if>
		<if condition="$group_power eq 'all' || in_array('distribution',$group_power)">
			<li>
				<dl>
					<dt>分销推广</dt>
					<dd>
						<a href="{:url('Membership/list_index')}">会员审核列表</a>
					</dd>
					<dd>
						<a href="{:url('Membership/list_withdrawals')}">分销提现列表</a>
					</dd>

					<dd>
						<a href="{:url('Membership/list_system_balance')}">平台回扣列表</a>
					</dd>
					<dd>
						<a href="{:url('Membership/list_member_balance')}">会员佣金列表</a>
					</dd>
					<dd>
						<a href="{:url('Membership/list_mention_balance')}">自提佣金列表</a>
					</dd>
				</dl>
			</li>
		</if>
		<if condition="$group_power eq 'all' || in_array('set',$group_power)">
			<li>
				<dl>
					<dt>店铺设置</dt>
					<if condition="$role_right eq 'all' || in_array('Set@banner',$role_right)">
						<!-- <dd>
							<a href="{:url('Set/banner')}"  <eq name="active" value="Set/banner">class="active"</eq>>店铺轮播图</a>
						</dd> -->
					</if>
					<if condition="$role_right eq 'all' || in_array('Set@banner',$role_right)">
						<dd>
							<a href="{:url('Set/shop_list')}"  <eq name="active" value="Set/banner">class="active"</eq>>店铺列表</a>
						</dd>
					</if>
					<if condition="$role_right eq 'all' || in_array('Set@activity',$role_right)">
						<!-- <dd>
							<a href="{:url('Set/activity')}"  <eq name="active" value="Set/activity">class="active"</eq>>首页活动专区</a>
						</dd> -->
					</if>
					<if condition="$role_right eq 'all' || in_array('Set@banner2',$role_right)">
						<!-- <dd>
							<a href="{:url('Set/banner2')}"  <eq name="active" value="Set/banner2">class="active"</eq>>轮播图2</a>
						</dd> -->
					</if>
					<if condition="$role_right eq 'all' || in_array('Set@category',$role_right)">
						<!-- <dd>
							<a href="{:url('Set/category')}"  <eq name="active" value="Set/category">class="active"</eq>>店铺分类</a>
						</dd> -->
					</if>
				</dl>
			</li>
		</if>
		<if condition="$group_power eq 'all' || in_array('set',$group_power)">
			<li>
				<dl>
					<dt>设置</dt>
					<if condition="$role_right eq 'all' || in_array('Set@about',$role_right)">
						<dd>
							<a href="{:url('Set/about')}"  <eq name="active" value="Set/about">class="active"</eq>>关于我们</a>
						</dd>
					</if>
					<if condition="$role_right eq 'all' || in_array('Set@activity2',$role_right)">
						<!-- <dd>
							<a href="{:url('Set/activity2')}"  <eq name="active" value="Set/activity2">class="active"</eq>>线路活动专区</a>
						</dd> -->
					</if>
					<if condition="$role_right eq 'all' || in_array('Set@feedback',$role_right)">
						<dd>
							<a href="{:url('Set/feedback')}"  <eq name="active" value="Set/feedback">class="active"</eq>>意见反馈</a>
						</dd>
					</if>
					<if condition="$role_right eq 'all' || in_array('Set@index',$role_right)">
						<dd>
							<a href="{:url('Set/index')}"  <eq name="active" value="Set/index">class="active"</eq>>系统设置</a>
						</dd>
					</if>
				</dl>
			</li>
		</if>
		<if condition="$group_power eq 'all'">
			<li>
				<dl>
					<dt>权限管理</dt>
					<dd>
						<a href="{:url('Admin/li')}"  <eq name="active" value="Admin/li">class="active"</eq>>管理员</a>
					</dd>
					<dd>
						<a href="{:url('Admin/role')}"  <eq name="active" value="Admin/role">class="active"</eq>>角色管理</a>
					</dd>
					<!-- <dd>
						<a href="{:url('Admin/right_list')}"  <eq name="active" value="Admin/right_list">class="active"</eq>>权限列表</a>
					</dd> -->
				</dl>
			</li>
		</if>
		<li>
			<p class="btm_infor">© 版权所有</p>
		</li>
	</ul>

</aside>
<section class="rt_wrap content mCustomScrollbar">
	<div class="rt_content">

		<!--点击加载-->
		<script>
			$(document).ready(function() {
				$("#loading").click(function() {
					$(".loading_area").fadeIn();
					$(".loading_area").fadeOut(1500);
				});
			});
		</script>
		<section class="loading_area">
			<div class="loading_cont">
				<div class="loading_icon"><i></i><i></i><i></i><i></i><i></i></div>
				<div class="loading_txt"><mark>数据正在加载，请稍后！</mark></div>
			</div>
		</section>
		<!--结束加载-->
		<!--弹出框效果-->
		<script>
			$(document).ready(function() {
				//弹出文本性提示框
				$("#showPopTxt").click(function() {
					$(".pop_bg").fadeIn();
				});
				//弹出：确认按钮
				$(".trueBtn").click(function() {
					alert("你点击了确认！"); //测试
					$(".pop_bg").fadeOut();
				});
				//弹出：取消或关闭按钮
				$(".falseBtn").click(function() {
					alert("你点击了取消/关闭！"); //测试
					$(".pop_bg").fadeOut();
				});
			});
		</script>
		<section class="pop_bg">
			<div class="pop_cont">
				<!--title-->
				<h3>弹出提示标题</h3>
				<!--content-->
				<div class="pop_cont_input">
					<ul>
						<li>
							<span>标题</span>
							<input type="text" placeholder="定义提示语..." class="textbox" />
						</li>
						<li>
							<span class="ttl">城市</span>
							<select class="select">
								<option>选择省份</option>
							</select>
							<select class="select">
								<option>选择城市</option>
							</select>
							<select class="select">
								<option>选择区/县</option>
							</select>
						</li>
						<li>
							<span class="ttl">地址</span>
							<input type="text" placeholder="定义提示语..." class="textbox" />
						</li>
						<li>
							<span class="ttl">地址</span>
							<textarea class="textarea" style="height:50px;width:80%;"></textarea>
						</li>
					</ul>
				</div>
				<!--以pop_cont_text分界-->
				<div class="pop_cont_text">
					这里是文字性提示信息！
				</div>
				<!--bottom:operate->button-->
				<div class="btm_btn">
					<input type="button" value="确认" class="input_btn trueBtn" />
					<input type="button" value="关闭" class="input_btn falseBtn" />
				</div>
			</div>
		</section>
		<!--结束：弹出框效果-->